package cn.com.dcsgo.springcloudstudy.order.config;

import feign.Logger;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Feign日志配置
 *
 * @author Dcsgo
 * @since 2024-08-03
 */
@Configuration
public class FeignConfig {
    /**
     * feignClient配置日志级别
     *
     * @return FULL
     */
    @Bean
    public Logger.Level feignLoggerLevel() {
        //请求和响应的头信息、正文、元数据
        return Logger.Level.FULL;
    }
}
